import request from '@/utils/request'
import { ResultRoleInfoVo, DeepRequired } from '../../interface'

/**
 * 根据id获取角色
 * /role/one/{id}
 */
export function getRoleOneById(params: GetRoleOneByIdParams) {
  return request.get<DeepRequired<ResultRoleInfoVo>>(`/role/one/${params.id}`)
}

interface GetRoleOneByIdParams {
  id: number
}
